package com.shop.order.dao;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.shop.order.vo.OrderVO;

@Repository
public class RecallDAOImpl extends SqlSessionDaoSupport implements RecallDAO {

	
	@Override
	public int isUserCnt(OrderVO.RecallItem recallItem) {
		// 회원 등록 여부 판단
		int isUserCnt = (Integer)getSqlSession().selectOne("com.shop.member.isUserCnt", recallItem);

		return isUserCnt;
	}
	
	@Override
	public int addMember(OrderVO.RecallItem recallItem) {
		// TODO Auto-generated method stub
		
		
		int cnt = 0;

		cnt = (Integer)getSqlSession().insert("com.shop.member.addMember", recallItem);
		
		return cnt;
	}

}
